import request from "@/utils/request";

// 查询售后记录列表
export function listStoreAfterSales(query) {
  return request({
    url: "/business/storeAfterSales/list",
    method: "get",
    params: query,
  });
}

// 查询售后记录所有列表
export function listAllStoreAfterSales(query) {
  return request({
    url: "/business/storeAfterSales/listAll",
    method: "get",
    params: query,
  });
}

// 查询售后记录详细
export function getStoreAfterSales(id) {
  return request({
    url: "/business/storeAfterSales/getInfo/" + id,
    method: "get",
  });
}

// 新增售后记录
export function addStoreAfterSales(data) {
  return request({
    url: "/business/storeAfterSales/add",
    method: "post",
    data: data,
  });
}

// 修改售后记录
export function updateStoreAfterSales(data) {
  return request({
    url: "/business/storeAfterSales/edit",
    method: "post",
    data: data,
  });
}

// 删除售后记录
export function delStoreAfterSales(id) {
  return request({
    url: "/business/storeAfterSales/remove/" + id,
    method: "get",
  });
}

// 审核
export function salesCheck(data) {
  return request({
    url: "/business/storeAfterSales/salesCheck",
    method: "post",
    data: data,
  });
}
// 审核
export function rebackMoney(data) {
  return request({
    url: "/business/storeAfterSales/makeMoney",
    method: "post",
    data: data,
  });
}
